import java.util.Scanner;

public class lx03{
	   public static void main(String args[]){
	      Scanner input=new Scanner(System.in);
	      int m=input.nextInt();
	      int sum=0;
	      int i;
	      for(i=1;i<=m;i++)
		 sum+=jch(i);
	      System.out.println("1!+...+"+m+"!="+sum);   	   
	   }    
	   public  static int jch(int i){	    
		  int x=1,y;
		  for(y=1;y<=i;y++)
		      x*=y;
		  return y;
	   }  
}